package example.action;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;

import example.common.LoginInterceptor;

/**
 * Action para salir de la aplicaci�n
 * @author icasado
 *
 */
public class LogoutAction {
	/** 
	 * @return String
	 * @throws Exception 
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	public String execute() throws Exception {
		ActionContext.getContext().getSession().remove(
				LoginInterceptor.USER_HANDLE);
		return Action.SUCCESS;
	}

}
